{% extends "space/customer/index.html" %}

{% block right_container %}
<div class="admin_position">个人中心 > 加盟餐厅 
</div>
<form method="post" action="" enctype="multipart/form-data">
	<div class="admin_mer_newDish" >
     <table class="zpc_ad_list"><tbody>
            {% if perms.pub.rest_apply %}
            	<tr>
	                <td colspan="3" class="bg_left" >
	                	<font color="red">
						{% if form.audited %}
							未审核
						{% else %}
							{% if form.passed %}
								审核不通过
							{% endif%}
						{% endif%}
						</font>
					</td>
            	</tr>
            {%endif%}
            <tr>
               <td class="bg_left">{{form.name.label}}:</td>
               <td >{{form.name}}</td>
               <td class="red">{% for error in form.name.errors %}{{error}}{% endfor %}</td>
            </tr>
            <tr>
               <td class="bg_left">{{form.contact.label}}:</td>
               <td >{{form.contact}}</td>
               <td class="red">{% for error in form.contact.errors %}{{error}}{% endfor %}</td>
            </tr>
            <tr>
               <td class="bg_left">{{form.phone.label}}:</td>
               <td >{{form.phone}}</td>
               <td class="red">{% for error in form.phone.errors %}{{error}}{% endfor %}</td>
            </tr>
            <tr>
               <td class="bg_left">{{form.bus_lic.label}}:</td>
               <td >
               	{% if perms.pub.rest_apply %}
               		<img alt="" width="100" height="100" src="/image/{{rest_apply.bus_lic}}"><br/>
               	{% endif%}
               	{{form.bus_lic}}
               </td>
               <td class="red">{% for error in form.passed.errors %}{{error}}{% endfor %}</td>
            </tr>
            <tr>
            	<td class="center" colspan="3"><input type="submit" name="button" value="提交内容" /></td>
            </tr>
         </tbody>
     </table>
  	</div>
     {% csrf_token %}
   
</form>   
{% endblock%}